package org.yjy.sys.controller.jurisdiction;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.yjy.pvd.pojo.jurisdiction.SysUserRole;
import org.yjy.sys.service.jurisdiction.MenuService;

import java.util.List;

@RequestMapping("/Menu")
@CrossOrigin
@RestController
public class MenuController {

    @Autowired
    private MenuService menuService;

    /**
     * 该方法做权限的支持
     * @param sysUserRole
     * @return
     */
    @PostMapping("/selectSysBySysuserroleUserid")
    public List<String> selectSysBySysuserroleUserid(@RequestBody SysUserRole sysUserRole){
        return menuService.selectSysBySysuserroleUserid(sysUserRole);
    }

}
